home *** CD-ROM | disk | FTP | other *** search
/ InterCD 2001 May / may_2001.iso / intercd / root / Html / ^CutePage / data1.cab / JsBox_Template / email_PageletServer.JsBox.pgt < prev    next >
Encoding:
Text File  |  2000-05-12  |  2.0 KB  |  51 lines

  1. ========== Description Part Begin ==========
  2. Title = email
  3. ProgID = PageletServer.JsBox
  4. LastUpdateTime = 36432.397812500
  5. PreviewPath = 
  6. Description = check the input is a email address or not.
  7. ========== Description Part End ==========
  8.  
  9. ========== Parameter Part Begin ==========
  10. EmailAlertTag = There are something wrong with the E-Mail address. Please assure you input the '@'.
  11. EmailAlert = There are something wrong with the E-Mail address. Please check the .com,.net,.org,.gov or.mil are contained in E-mail address.
  12. EmailInputPara = 40,Center,Submit,http://www.cutepage.com,http:,www.cutepage.com
  13. JsBoxType = 7
  14. ========== Parameter Part End ==========
  15.  
  16. ========== Resource Part Begin ==========
  17. Resource Number = 0
  18. ========== Resource Part End ==========
  19.  
  20. ========== HTML Part Begin ==========
  21. Segment Number = 2
  22. Segment Position = script
  23. <script language="javascript">
  24. function emailCheck(formname,alertemail, alertsuffix) {
  25.     txt=document.forms[formname].email.value;
  26.     if (txt.indexOf("@")<3){
  27.         alert(alertsuffix);
  28.         return false;}
  29.     if ((txt.indexOf(".com")<5)&&(txt.indexOf(".org")<5)
  30.     &&(txt.indexOf(".gov")<5)&&(txt.indexOf(".net")<5)
  31.     &&(txt.indexOf(".mil")<5)){
  32.         alert(alertemail);
  33.         return false;}
  34. }
  35. </script>
  36. ===== Segment End =====
  37. Segment Position = cursor
  38. <script language="javascript">
  39. srctecformemailemailalerttextofemailtag="There are something wrong with the E-Mail address. Please assure you input the '@'."
  40. srctecformemailemailalerttextofemail="There are something wrong with the E-Mail address. Please check the .com,.net,.org,.gov or.mil are contained in E-mail address."
  41. </script>
  42. <form name="srctecformemailemail" action="http://www.cutepage.com" enctype="text/plain" method="post" onsubmit="return emailCheck('srctecformemailemail',srctecformemailemailalerttextofemail,srctecformemailemailalerttextofemailtag)">
  43. <div align="Center">
  44. <input type="text" name="email" size=40 value="">
  45. <input type="submit" name="email1" value="Submit">
  46. </div>
  47. </form>
  48. ===== Segment End =====
  49. ========== HTML Part End ==========
  50.  
  51.